fix(cli): propagate cloud workspace routing and incremental sync#712
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 1m 34s —— View job PR Review: Fix cloud workspace routing and incremental sync
Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Issues Found1. Stale/misleading comment in
|
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 2m 10s —— View job PR Review: Fix cloud workspace routing and incremental sync
Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Issues Found1. Stale comment in
|
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 1m 59s —— View job PR Review: Fix cloud workspace routing and incremental sync
Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Issues Found1. Stale comment in
|
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 1m 12s —— View job PR Review: Fix cloud workspace routing and incremental sync
Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Issues FoundAll four items below were flagged in one or more prior review rounds and remain unaddressed in this push. 1. Stale comment in
|
Signed-off-by: phernandez <paul@basicmachines.co>
|
Claude finished @phernandez's task in 1m 28s —— View job PR Review: Fix cloud workspace routing and incremental sync
Code Quality & Standards
Testing & Documentation
Basic Memory Architecture
Security & Performance
Compatibility
Previously Flagged Issues — Status Update1. Stale comment in
|
Summary
This PR fixes two related cloud CLI issues:
Root Cause
Two separate regressions were still present in the current branch state:
syncandbisynccommands always passedforce_full=Truewhen triggering post-sync database indexing.What Changed
async_client.pyget_client()to auto-apply per-projectworkspace_idanddefault_workspacefor cloud routingget_cloud_control_plane_client()to accept and sendX-Workspace-IDbm cloud uploadto reuse the resolved workspace for API checks and WebDAV uploadsImpact
bm cloud syncandbm cloud bisyncavoid unnecessary full reindex work in normal operationValidation
uv run pytest -q tests/mcp/test_async_client_modes.py tests/cli/cloud/test_cloud_api_client_and_utils.py tests/cli/cloud/test_upload_command_routing.py tests/cli/cloud/test_project_sync_command.pyuv run ruff check src/basic_memory/mcp/async_client.py src/basic_memory/cli/commands/cloud/cloud_utils.py src/basic_memory/cli/commands/cloud/upload_command.py src/basic_memory/cli/commands/cloud/project_sync.py tests/cli/cloud/test_project_sync_command.py tests/cli/cloud/test_cloud_api_client_and_utils.py tests/cli/cloud/test_upload_command_routing.py tests/mcp/test_async_client_modes.pyuv run pyright src/basic_memory/mcp/async_client.py src/basic_memory/cli/commands/cloud/cloud_utils.py src/basic_memory/cli/commands/cloud/upload_command.py src/basic_memory/cli/commands/cloud/project_sync.pyNotes
The targeted pytest run still emits an existing Alembic runtime warning in these CLI tests, but the suite passed.